package com.yzc;

import com.yzc.model.entity.system.UserBean;
import com.yzc.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "system-service")
public interface UserFeignClient {


    @GetMapping("/userapi/selectInfos")
    public Result<List> selectInfos(@RequestParam("name") String name);

    @GetMapping("/userapi/ getInfoById")
    public Result<List> getInfoById(@RequestParam("id") int id);
}
